package com.example.orderservice.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "stock-service",fallback = StockClientFallback.class)
public interface StockClient {

    @GetMapping("/stock/reduce")
    String reduceStock(@RequestParam String productId,@RequestParam Integer stockNum);
}
